﻿using System;
using System.Collections.Generic;
using System.Text;
using OgilvyOne.Model;
using System.Data;

namespace OgilvyOne.IDAL
{
    public interface IIndexBanner
    {
        /// <summary>
        /// 是否存在该记录
        /// </summary>
        bool Exists(string bannernme, int bannerid);
        /// <summary>
        /// 增加一条数据
        /// </summary>
        int Add(IndexBannerModel model);
        /// <summary>
        /// 更新一条数据
        /// </summary>
        bool Update(IndexBannerModel model);
        /// <summary>
        /// 删除一条数据
        /// </summary>
        bool Delete(int Banner_ID);
        bool DeleteList(string Banner_IDlist);
        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        IndexBannerModel GetModel(int Banner_ID);
        ///// <summary>
        ///// 得到一个实体对象根据ORDER_NUM
        ///// </summary>
        ///// <param name="OrderNum"></param>
        ///// <returns></returns>
        IndexBannerModel GetModelByOrderNum(int OrderNum);      
        /// <summary>
        /// 获得数据列表
        /// </summary>
        DataSet GetList(string strWhere);

    }
}
